@echo off
rem @author Zheng xiaofeng
rem run compile.bat to compile the source code.

call setenv.bat

javac -cp %CLASSPATH% -d .\classes .\src\sg\edu\nus\iss\team8s\vmcs\beans\*.java .\src\sg\edu\nus\iss\team8s\vmcs\builder\*.java .\src\sg\edu\nus\iss\team8s\vmcs\cache\*.java .\src\sg\edu\nus\iss\team8s\vmcs\commons\*.java .\src\sg\edu\nus\iss\team8s\vmcs\control\*.java .\src\sg\edu\nus\iss\team8s\vmcs\gui\*.java .\src\sg\edu\nus\iss\team8s\vmcs\Listener\*.java .\src\sg\edu\nus\iss\team8s\vmcs\payment\*.java .\src\sg\edu\nus\iss\team8s\vmcs\PropertyLoader\*.java .\src\sg\edu\nus\iss\team8s\vmcs\state\*.java

IF EXIST .\classes\data GOTO COPYDATA
mkdir .\classes\data
:COPYDATA
copy .\src\data\* .\classes\data /Y
copy .\src\sg\edu\nus\iss\team8s\vmcs\builder\*.xml .\classes\sg\edu\nus\iss\team8s\vmcs\builder /Y
copy .\src\sg\edu\nus\iss\team8s\vmcs\state\*.xml .\classes\sg\edu\nus\iss\team8s\vmcs\state /Y
